package com.boronstream.istar.utils;

import android.os.Environment;

public interface CommonDefine {

//  	public static final String SERVER_URL = "http://192.168.11.102";
//	public static final String APP_SERVER_URL = SERVER_URL + "/iphonePHP/enter.php/home";
	public static final String SERVER_URL = "http://horoscope.sinaapp.com";
	public static final String APP_SERVER_URL = SERVER_URL + "/enter.php/Api";
	
	public static final String API_METHOD_BASIC = "/phone/add";
	public static final String API_METHOD_PHONE_APP = "/phoneapp/add";
	public static final String API_METHOD_PHONES = "/phone/phones";
	
	public static final String API_METHOD_HOROSCOPE = "/Horoscope/%1$s";
	public static final String API_METHOD_SYMBOL = "/Star/symbol/id/%1$s";

	/**
	 * Cache folder
	 */
	public static final String APP_SDCARD_FOLDER = Environment
			.getExternalStorageDirectory().getAbsolutePath() + "/iStar";

	public interface TimeExtra {
		public static final int ONE_SECOND = 1000;
		public static final int ONE_MINUTE = 60 * ONE_SECOND;
		public static final int ONE_HOUR = 60 * ONE_MINUTE;
		public static final int ONE_DAY = 24 * ONE_HOUR;
	}

	public interface HttpField {
		public static final String TYPE = "type";
	}

	public interface IntentField {
		public static final String TAG = "tag";
		public static final String URL = "url";
		public static final String TITLE = "title";
		public static final String STAR_NAME = "STAR_NAME";
		public static final String PRODUCT = "product";
		public static final String ARTICLE = "article";
		public static final String ARTICLE_ID = "article_id";
		public static final String PRODUCT_ID = "product_id";
	}

	public interface IntentAction {
		public static final String ACTION_STAR_FILTER_CHANGE= "com.boronstream.istar.changed";
	}
}
